package com.talos.ums.controller.admin.organizationmanager.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 组织管理人员关联表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsOrganizationManagerPageReqVO extends PageParam {

    @Schema(description = "用户id", example = "8445")
    private Long userId;

    @Schema(description = "用户名称", example = "李四")
    private String userName;

    @Schema(description = "组织id", example = "23789")
    private Long orgId;

    @Schema(description = "创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "王五")
    private String creatorName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "王五")
    private String modifierName;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "创建人id", example = "28140")
    private Long creatorId;

    @Schema(description = "修改人id", example = "1613")
    private Long modifierId;

    @Schema(description = "租户id", example = "9082")
    private Long tenantId;

}
